package com.llc.gulimall.order.to;

import com.llc.gulimall.order.entity.OrderEntity;
import com.llc.gulimall.order.entity.OrderItemEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author wangwei
 * 2021/1/25 22:45
 *
 * 订单创建完的数据模型
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class OrderCreateTo implements Serializable {

    private OrderEntity order;

    private List<OrderItemEntity> orderItems;

    private BigDecimal payPrice;

    private BigDecimal fare;
}
